package com.huaxin.common.Entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by hebing on 2017/4/17.
 */

public class FindInfo extends BaseDTO implements Serializable {

    /**
     * msg : Success!
     * state : 1
     * questionList : [{"commentNum":20,"likeerNum":30,"userImg":"http://139.224.234.222:8081/uploads/image/userHeadImg/20170406150323575.jpg","collectionNum":10,"imgUrls":["http://139.224.234.222:8081/uploads/image/question/1492325590000.png","http://139.224.234.222:8081/uploads/image/question/1492325590001.png"],"nickName":"WuferzZ","publishDate":"2017-04-16 14:53:10","content":"213"},{"commentNum":20,"likeerNum":30,"userImg":"http://139.224.234.222:8081/uploads/image/userHeadImg/20170406150323575.jpg","collectionNum":10,"imgUrls":["http://139.224.234.222:8081/uploads/image/question/1492325575000.png","http://139.224.234.222:8081/uploads/image/question/1492325575001.png"],"nickName":"WuferzZ","publishDate":"2017-04-16 14:52:56","content":"213"},{"commentNum":20,"likeerNum":30,"userImg":"http://139.224.234.222:8081/uploads/image/userHeadImg/20170406150323575.jpg","collectionNum":10,"imgUrls":["http://139.224.234.222:8081/uploads/image/question/1492325280000.png","http://139.224.234.222:8081/uploads/image/question/1492325280001.png"],"nickName":"WuferzZ","publishDate":"2017-04-16 14:48:00","content":"213"},{"commentNum":20,"likeerNum":30,"userImg":"http://139.224.234.222:8081/uploads/image/userHeadImg/20170406150323575.jpg","collectionNum":10,"imgUrls":["http://139.224.234.222:8081/uploads/image/question/1492324669000.png"],"nickName":"WuferzZ","publishDate":"2017-04-16 14:37:49","content":"213"},{"commentNum":20,"likeerNum":30,"userImg":"http://139.224.234.222:8081/uploads/image/userHeadImg/20170406150323575.jpg","collectionNum":10,"imgUrls":[""],"nickName":"WuferzZ","publishDate":"2017-04-16 14:37:09","content":"213"},{"commentNum":20,"likeerNum":30,"userImg":"http://139.224.234.222:8081/uploads/image/userHeadImg/20170406150323575.jpg","collectionNum":10,"imgUrls":[""],"nickName":"WuferzZ","publishDate":"2017-04-16 14:36:54","content":"213"},{"commentNum":20,"likeerNum":30,"userImg":"http://139.224.234.222:8081/uploads/image/userHeadImg/20170406150323575.jpg","collectionNum":10,"imgUrls":["http://139.224.234.222:8081/uploads/image/question/1492323098000.png","http://139.224.234.222:8081/uploads/image/question/1492323098001.png"],"nickName":"WuferzZ","publishDate":"2017-04-16 14:11:39","content":"213"},{"commentNum":20,"likeerNum":30,"userImg":"http://139.224.234.222:8081/uploads/image/userHeadImg/20170406150323575.jpg","collectionNum":10,"imgUrls":["http://139.224.234.222:8081/uploads/image/question/1492323087000.png"],"nickName":"WuferzZ","publishDate":"2017-04-16 14:11:27","content":"213"},{"commentNum":20,"likeerNum":30,"userImg":"http://139.224.234.222:8081/uploads/image/userHeadImg/20170406150323575.jpg","collectionNum":10,"imgUrls":["http://139.224.234.222:8081/uploads/image/question/1492323065000.png","http://139.224.234.222:8081/uploads/image/question/1492323065001.png"],"nickName":"WuferzZ","publishDate":"2017-04-16 14:11:06","content":"213"}]
     */

    //    private String msg;
    //    private int state;
    private List<QuestionListBean> questionList;

    @Override
    public String toString() {
        return "FindInfo{" +
                ", questionList=" + questionList +
                '}';
    }

    //    public String getMsg() {
    //        return msg;
    //    }
    //
    //    public void setMsg(String msg) {
    //        this.msg = msg;
    //    }
    //
    //    public int getState() {
    //        return state;
    //    }
    //
    //    public void setState(int state) {
    //        this.state = state;
    //    }

    public List<QuestionListBean> getQuestionList() {
        return questionList;
    }

    public void setQuestionList(List<QuestionListBean> questionList) {
        this.questionList = questionList;
    }

    public static class QuestionListBean implements Serializable {
        /**
         * commentNum : 20
         * likeerNum : 30
         * userImg : http://139.224.234.222:8081/uploads/image/userHeadImg/20170406150323575.jpg
         * collectionNum : 10
         * imgUrls : ["http://139.224.234.222:8081/uploads/image/question/1492325590000.png","http://139.224.234.222:8081/uploads/image/question/1492325590001.png"]
         * nickName : WuferzZ
         * publishDate : 2017-04-16 14:53:10
         * content : 213
         */

        private int                            commentNum;
        private int                            likeerNum;
        private int                            collectionNum;
        private String                         publishDate;
        private String                         content;
        private int                            questionId;
        private int                            topCommentNum;
        private List<String>                   imgUrls;
        private Publisher                      publisher;
        private List<LikeerArrayBean>          likeerArray;
        private boolean                        isCollection;
        private boolean                        isFan;
        private boolean                        isLike;

        public List<PartialTopCommentArrBean> getPartialTopCommentArr() {
            return partialTopCommentArr;
        }

        public void setPartialTopCommentArr(List<PartialTopCommentArrBean> partialTopCommentArr) {
            this.partialTopCommentArr = partialTopCommentArr;
        }

        private List<PartialTopCommentArrBean> partialTopCommentArr;


        public static class PartialTopCommentArrBean implements Serializable {
            /**
             * content : 111
             * publisher : {"id":373,"nickName":"刘德吉","img":""}
             */

            private String         content;
            private PublisherBeanX publisher;

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public PublisherBeanX getPublisher() {
                return publisher;
            }

            public void setPublisher(PublisherBeanX publisher) {
                this.publisher = publisher;
            }

            public static class PublisherBeanX implements Serializable {
                /**
                 * id : 373
                 * nickName : 刘德吉
                 * img :
                 */

                private int    id;
                private String nickName;
                private String img;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getNickName() {
                    return nickName;
                }

                public void setNickName(String nickName) {
                    this.nickName = nickName;
                }

                public String getImg() {
                    return img;
                }

                public void setImg(String img) {
                    this.img = img;
                }

            }

        }

        public boolean isIsLike() {
            return isLike;
        }

        public void setIsLike(boolean isLike) {
            this.isLike = isLike;
        }

        public boolean isIsFan() {
            return isFan;
        }

        public void setIsFan(boolean isFan) {
            this.isFan = isFan;
        }

        public boolean isIsCollection() {
            return isCollection;
        }

        public void setIsCollection(boolean isCollection) {
            this.isCollection = isCollection;
        }


        public List<LikeerArrayBean> getLikeerArray() {
            return likeerArray;
        }

        public void setLikeerArray(List<LikeerArrayBean> likeerArray) {
            this.likeerArray = likeerArray;
        }


        public Publisher getPublisher() {
            return publisher;
        }

        public void setPublisher(Publisher publisher) {
            this.publisher = publisher;
        }

        public static class Publisher implements Serializable {
            private String img;
            private int    id;
            private String nickName;

            public Publisher(String img, int id, String nickName) {
                this.img = img;
                this.id = id;
                this.nickName = nickName;
            }

            public String getUserImg() {
                return img;
            }

            public void setUserImg(String img) {
                this.img = img;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getNickName() {
                return nickName;
            }

            public void setNickName(String nickName) {
                this.nickName = nickName;
            }
        }


        @Override
        public String toString() {
            if (imgUrls != null) {
                return imgUrls.get(0).toString();
            }
            return "没有图片。。。";
        }

        public int getCommentNum() {
            return commentNum;
        }

        public int getQuestionId() {
            return questionId;
        }

        public void setQuestionId(int questionId) {
            this.questionId = questionId;
        }

        public int getTopCommentNum() {
            return topCommentNum;
        }

        public void setTopCommentNum(int topCommentNum) {
            this.topCommentNum = topCommentNum;
        }

        public void setCommentNum(int commentNum) {
            this.commentNum = commentNum;
        }

        public int getLikeerNum() {
            return likeerNum;
        }

        public void setLikeerNum(int likeerNum) {
            this.likeerNum = likeerNum;
        }


        public int getCollectionNum() {
            return collectionNum;
        }

        public void setCollectionNum(int collectionNum) {
            this.collectionNum = collectionNum;
        }

        public String getPublishDate() {
            return publishDate;
        }

        public void setPublishDate(String publishDate) {
            this.publishDate = publishDate;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public List<String> getImgUrls() {
            return imgUrls;
        }

        public void setImgUrls(List<String> imgUrls) {
            this.imgUrls = imgUrls;
        }
    }

    public static class LikeerArrayBean implements  Serializable {
        /**
         * img : http://139.224.234.222:8081/uploads/image/userHeadImg/20170427113954647.jpg
         * nickName : Hong
         * id : 378
         */
        private String img;
        private String nickName;
        private int    id;

        public LikeerArrayBean() {
            super();
        }

        public LikeerArrayBean(String img, String nickName, int id) {
            this.img = img;
            this.nickName = nickName;
            this.id = id;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        @Override
        public String toString() {
            return "LikeerArrayBean{" +
                    "img='" + img + '\'' +
                    ", nickName='" + nickName + '\'' +
                    ", id=" + id +
                    '}';
        }
    }
}
